<html>
<head>
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/jquery.print.js"></script>  
<script type="text/javascript">
$(document).ready(function(){
 //printable function for direct print
 $( ".printable" ).print();
});
</script>
</head>
<body>
<div class="printable"> 
<a href="pendingRandRList.php">
<table border='1' cellpadding='5' cellspacing='0' align='center' width="95%" style="font-size:12px;">
<tr>
  <td align="center" class="table1" colspan="4"><b>R AND R</b></td>
</tr>
<tr>
  <td class="table1" align="left" width="11%"><b>Sr.No.: </b></td>
  <td class="table2" align="left">{$masterArray.srNo}<input type="hidden" name="rAndRMasterId" value="{$masterArray.rAndRMasterId}" /></td>
  <td class="table1" align="left" width="12%"><b>Send For Repair : </b></td>
  <td class="table2">{$masterArray.supplier}</td>
</tr>
<tr>
  <td class="table1" align="left"><b>Complaint Date: </b></td>
  <td class="table2" NOWRAP>{$masterArray.complaintDate}</td>
  <td class="table1" align="left"><b>Target Date: </b></td>
  <td class="table2" NOWRAP>{$masterArray.targetDate}</td>
</tr>
<tr>
  <td class="table1" align="left" NOWRAP><b>Address : </b></td>
  <td class="table2" >{$masterArray.address}</td>
  <td class="table2" ><b>Phone No. : </td>
  <td class="table2" >{$masterArray.phoneNo}</td>
</tr>
<tr>
	<td class="table3" align="center" colspan="4" NOWRAP>
		<table border='1' cellpadding='2' cellspacing='0' align='center' width="100%" style="font-size:12px;">
			<tr>
				<td class="table1" align="center"><b>Sr</b></td>
				<td class="table1" align="center"><b>Sub Category</b></td>
				<td class="table1" align="center"><b>Product</b></td>
				<td class="table1" align="center"><b>Quantity</b></td>
				<td class="table1" align="center"><b>Description of Complaints</b></td>
			</tr>
			{section name=sec loop=$detailArray}
			<tr>
				<td class="table2" align="center" width="3%">{$smarty.section.sec.rownum}</td>
				<td class="table2" align="left"><font size="1">{$detailArray[sec].subCategoryName}</font></td>
				<td class="table2" align="left"><font size="1">{$detailArray[sec].itemName}</font></td>
				<td class="table2" align="center" width="5%">{$detailArray[sec].quantity}</td>
				<td class="table2" align="left"><font size="1">{$detailArray[sec].complaintDescription}</font></td>
			</tr>
			{/section}
		</table>
	</td>
</tr>
</table>
</a>
</div>
</body>
</html>